package com.qwfys.sample.jackson.model;

import java.util.List;

public class ModuleDo {
    private List<Field> fields;

    private String moduleName;

    private String moduleDescription;

    private String moduleTitle;

    public ModuleDo() {
    }

    public ModuleDo(List<Field> fields, String moduleName, String moduleDescription, String moduleTitle) {
        this.fields = fields;
        this.moduleName = moduleName;
        this.moduleDescription = moduleDescription;
        this.moduleTitle = moduleTitle;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getModuleDescription() {
        return moduleDescription;
    }

    public void setModuleDescription(String moduleDescription) {
        this.moduleDescription = moduleDescription;
    }

    public List<Field> getFields() {
        return fields;
    }

    public void setFields(List<Field> fields) {
        this.fields = fields;
    }

    //@JsonCreator
    //public static ModuleDo Create(String jsonString) throws JsonParseException, JsonMappingException, IOException {
    //    ObjectMapper mapper = new ObjectMapper();
    //    ModuleDo module = null;
    //    module = mapper.readValue(jsonString, ModuleDo.class);
    //    return module;
    //}

    public String getModuleTitle() {
        return moduleTitle;
    }

    public void setModuleTitle(String moduleTitle) {
        this.moduleTitle = moduleTitle;
    }
}
